package com.miya.demo.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.EnumSet;
import java.util.Set;

/**
 * 执行器枚举
 *
 * @author Caixiaowei
 * @date 2022/07/08
 */
@Getter
@AllArgsConstructor
public enum ProcessNameEnum {

    USER_INFO_QUERY("userInfoQueryProcessor", "用户信息查询"),
    PROMOTION_COMPUTE("promotionComputeProcessor", "营销计算"),
    MONEY_PROCESS("moneyProcessor", "金额处理"),
    ;

    private final String code;
    private final String desc;

    private static final Set<ProcessNameEnum> ALL = EnumSet.allOf(ProcessNameEnum.class);

}
